function   ajaxSubmit(){  
			          //获取用户输入  
			          var  subCompanyId = document.getElementById("subCompany").value;
			          var  subCityId = document.getElementById("subCityHidden").value;
			          //创建XMLHttpRequest对象  
			          organizationAction.findOrganizationByParentId(subCompanyId,{
						callback:function(result){
			        	  	var	nodeList = SelectNodes(result,"/root/list/item");
						    document.getElementById("subCity").options.length = 1;
					      	for(var i=0 ;i<nodeList.length;i++){
					      		document.getElementById("subCity").options.add(new Option(nodeList[i].getAttribute("name"),nodeList[i].getAttribute("oid"))); 
					      	}
					      	
					      	if(subCityId!=''){
					      	    var options = document.getElementById("subCity").options;
				 		        for(var i=0;i<options.length;i++){
								   if(options[i].value == subCityId){
								   		document.getElementById("subCity").options[i].selected = true;
								   }
						        }
		     			    }
						},errorHandler:function(errorString, exception) {
							alert(errorString,280,180," ",null);
							 return;
						  }
					});
			  }  
		  
          function check(){
             var subCityHidden =  document.getElementById("subCity").value;
             document.getElementById("subCityHidden").value = document.getElementById("subCity").value;
             return true;
          }
          
          function setButtonType(obj){
        	  document.getElementById('buttonType').value = obj.name; 
        	  document.listForm.submit();
        	  document.getElementById('buttonType').value = '';
        	  }
        	  
function SelectSingleNode(xmlDoc, elementPath)
{
    if(window.ActiveXObject)
     {
        return xmlDoc.selectSingleNode(elementPath);
     }
    else
     {
        var xpe = new XPathEvaluator();
        var nsResolver = xpe.createNSResolver( xmlDoc.ownerDocument == null ? xmlDoc.documentElement : xmlDoc.ownerDocument.documentElement);
        var results = xpe.evaluate(elementPath,xmlDoc,nsResolver,XPathResult.FIRST_ORDERED_NODE_TYPE, null);
        return results.singleNodeValue;
     }
}
    
function SelectNodes(xmlDoc, elementPath)
{
    if(window.ActiveXObject)
     {
        return xmlDoc.selectNodes(elementPath);
     }
    else
     {
        var xpe = new XPathEvaluator();
        var nsResolver = xpe.createNSResolver( xmlDoc.ownerDocument == null ? xmlDoc.documentElement : xmlDoc.ownerDocument.documentElement);
        var result = xpe.evaluate(elementPath, xmlDoc, nsResolver, 0, null);
        var found = [];
        var res;
        while   (res = result.iterateNext())
             found.push(res);
        return found;
     }
}
          
          
